<?php
/**
 * Interface for service objects that can be attached to
 * Workflow_Node_Action nodes.
 * @author dengdl
 *
 */
interface  Workflow_ServiceObject
{
	 /**
     * Executes the business logic of this service object.
     *
     * Implementations can return true if the execution of the
     * service object was successful to resume the workflow and activate
     * the next node.
     *
     * Returning false will cause the workflow to be suspended and the service
     * object to be executed again on a later invokation.
     *
     * @param  Workflow_Execution $execution
     * @return boolean
     */
    public function execute( Workflow_Execution $execution );
}
?>